package com.authine.cloudpivot.ext.repository;

import com.authine.cloudpivot.engine.repository.BaseRepository;
import com.authine.cloudpivot.ext.doman.IwrwyKcqdEntity;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * @Author: brookpeng
 * @Date: 2022/3/19 10:45
 */
public interface CourseUpdateRepository extends BaseRepository<IwrwyKcqdEntity, Serializable> {

    @Query(nativeQuery = true, value = "SELECT * FROM `iwrwy_kcqd` T WHERE T.kcbh IN (:kcbhList)")
    List<Map<String, Object>> kcqdUpdateList(@Param(value = "kcbhList") List<String> kcbhList);

    @Query(nativeQuery = true, value = "SELECT * FROM `iwrwy_kcgxfk` T WHERE T.kcbh IN (:kcbhList)")
    List<Map<String, Object>> kcgxfkUpdateList(@Param(value = "kcbhList") List<String> kcbhList);
}
